package com.scrum.Connection;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBConnection {
	public static Connection connectDB() throws ClassNotFoundException, SQLException{
			try{
			Class.forName("com.mysql.jdbc.Driver");
//			Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/travelholic", "root", "");
//	       System.out.println("dfasdfasdf");
	      
	}catch(Exception ex){
		System.out.println("Error Database");
	System.out.println(ex.getMessage());
	}
			 return DriverManager.getConnection("jdbc:mysql://localhost:3306/travelholic", "root", "");
	}
			
}
